package org.example.rubbish.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
public class InventoryOut {
    private Long id;
    private Long stationId;       // 站点ID
    private BigDecimal weight;    // 出库重量(kg)
    private Long operator;        // 操作人ID
    private Date createTime;      // 创建时间

    // 如果需要关联查询站点信息，可以添加这个字段（非数据库字段）
    private Site station;   // 站点信息

    public InventoryOut(Long id, Long stationId, BigDecimal weight, Long operator, Date createTime, Site station) {
        this.id = id;
        this.stationId = stationId;
        this.weight = weight;
        this.operator = operator;
        this.createTime = createTime;
        this.station = station;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Long getOperator() {
        return operator;
    }

    public void setOperator(Long operator) {
        this.operator = operator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Site getStation() {
        return station;
    }

    public void setStation(Site station) {
        this.station = station;
    }
}